package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教务积分记录
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-26
 */
@TableName("senate_score_log")
@ApiModel(value = "SenateScoreLog对象", description = "教务积分记录")
@Data
public class SenateScoreLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer lessonNum;

    private Long teacherId;

    private Integer subjectsId;

    @ApiModelProperty("项目id")
    private Long projectsId;

    @ApiModelProperty("数据或率")
    private BigDecimal count;

    @ApiModelProperty("积分")
    private Integer score;

    private LocalDate startDate;

    private LocalDate endDate;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
